<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>简历展示</title>
    <meta charset="UTF-8"/>
</head>
<body>
<h1 th:text="${user.name}">姓名</h1>
<h3 th:text="'应聘岗位: ' + ${user.position_applied}"></h3>

<p> 电话: <span th:text="${user.phone}"></span></p>
<p> 邮箱: <span th:text="${user.email}"></span></p>
<p> 地址: <span th:text="${user.address}"></span></p>
<img th:src="@{'/images/' + ${user.avatar_path}}" width="100"/>
<form th:action="@{'/updateAvatar/'+${user.id.toString()}}" method="post" enctype="multipart/form-data">
    <label for="file">选择头像：</label>
    <input type="file" name="file" >
    <button type="submit">上传</button>
</form>


<h2>教育背景</h2>
<ul th:each="edu : ${educations}">
    <li><b th:text="${edu.start_date} + ' - ' + ${edu.end_date}"></b>
        <span th:text="${edu.school_name} + ' | ' + ${edu.major}"></span><br/>
        <i th:text="${edu.degree}"></i>
    </li>
</ul>

<h2>工作经历</h2>
<ul th:each="work : ${workExperiences}">
    <li><b th:text="${work.start_date} + ' - ' + ${work.end_date}"></b>
        <span th:text="${work.company_name} + ' | ' + ${work.job_title}"></span><br/>
        <i th:text="${work.description}"></i>
    </li>
</ul>

<h2>校园经历</h2>
<ul th:each="campus : ${campusExperiences}">
    <li><b th:text="${campus.start_date} + ' - ' + ${campus.end_date}"></b>
        <span th:text="${campus.organization} + ' | ' + ${campus.position}"></span>
    </li>
</ul>

<h2>技能与证书</h2>
<ul th:each="skill : ${skills}">
    <li th:text="${skill.certificate_name}"></li>
</ul>

<h2>自我评价</h2>
<p th:text="${evaluation.content}"></p>

</body>
</html>
